package com.javasm.entity;

import java.io.Serializable;

/**
 * @author WangJie
 * @version 1.0
 * @Description: 图书一级分类实体类
 * @date: 2020/7/21 22:37
 * @since JDK 1.8
 */
public class BookSecondSort implements Serializable {

    private Integer tsb_id;
    private Integer ssb_id;
    private String ssb_name;

    private String tsb_name; // 非数据库字段，自定义添加的字段，用于图书分类页面的数据回显封装

    public BookSecondSort() {
    }

    public BookSecondSort(Integer tsb_id, Integer ssb_id, String ssb_name, String tsb_name) {
        this.tsb_id = tsb_id;
        this.ssb_id = ssb_id;
        this.ssb_name = ssb_name;
        this.tsb_name = tsb_name;
    }

    @Override
    public String toString() {
        return "BookSecondSort{" +
                "tsb_id=" + tsb_id +
                ", ssb_id=" + ssb_id +
                ", ssb_name='" + ssb_name + '\'' +
                ", tsb_name='" + tsb_name + '\'' +
                '}';
    }

    public String getTsb_name() {
        return tsb_name;
    }

    public void setTsb_name(String tsb_name) {
        this.tsb_name = tsb_name;
    }

    public Integer getTsb_id() {
        return tsb_id;
    }

    public void setTsb_id(Integer tsb_id) {
        this.tsb_id = tsb_id;
    }

    public Integer getSsb_id() {
        return ssb_id;
    }

    public void setSsb_id(Integer ssb_id) {
        this.ssb_id = ssb_id;
    }

    public String getSsb_name() {
        return ssb_name;
    }

    public void setSsb_name(String ssb_name) {
        this.ssb_name = ssb_name;
    }
}
